home *** CD-ROM | disk | FTP | other *** search
- #define CURSES_LIBRARY 1
- #include <curses.h>
-
- #ifdef REGISTERWINDOWS
- #ifdef PDCDEBUG
- char *rcsid__findwin = "$Header: C:\CURSES\private\RCS\_findwin.c 2.1 1993/06/18 20:23:16 MH Rel MH $";
- #endif
-
-
-
-
- /*man-start*********************************************************************
-
- PDC_findwin() - Find a window in the visible windows list.
-
- PDCurses Description:
- This is a private PDCurses routine.
-
- This routine is a part of the developing window registration
- system that will reach maturity soon.
-
- This routine returns the passed WINDOW*'s WINDS pointer.
-
- PDCurses Return Value:
- This function returns OK on success and ERR on error.
-
- PDCurses Errors:
- No errors are defined for this function.
-
- Portability:
- PDCurses WINDS* PDC_findwin( WINDOW* win );
-
- **man-end**********************************************************************/
-
- WINDS* PDC_findwin(WINDOW *win)
- {
- WINDS* next = _cursvar.visible;
-
- #ifdef PDCDEBUG
- if (trace_on) PDC_debug("PDC_findwin() - called\n");
- #endif
-
- while (next != (WINDS *)NULL)
- {
- if (next->w == win)
- break;
- next = next->next;
- }
- return( next );
- }
- #endif
-